//
//  network_struct.h
//  testpcap
//
//  Created by bugforever on 1/11/15.
//  Copyright (c) 2015 bugforever. All rights reserved.
//

#ifndef __network_struct_h
#define __network_struct_h

#include "network_type.h"
#include "interface_network_data.h"

#define ETHER_ADDR_LEN 6

struct network_pcap_data
{
    time_t time;
    interface_network_data * ptr_data;
};

struct network_ethernet_data
{
    time_t time;
    u_char ether_shost[ETHER_ADDR_LEN]; /* source ethernet address, 6 bytes */
    u_char ether_dhost[ETHER_ADDR_LEN]; /* destination ethernet addresss, 6 bytes */
    u_short ether_type;                 /* ethernet type, 16 bits */
    interface_network_data * ptr_data;
};

struct network_ipv4_data 
{
	time_t time;
	u_char ether_shost[ETHER_ADDR_LEN];
	u_char ether_dhost[ETHER_ADDR_LEN];
    u_char saddr[4];
    u_char daddr[4];
	interface_network_data * ptr_data;

};



#endif
